/**
 * @description: 生成uuid，32位
 * @param {*} target
 * @return {*}
 */
export function uid() {
  function S4() {
    return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
  }
  return (S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4());
  // '7ff0051eefea06872afe13a2d44ad62e'
  return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
  // '439ac112-700e-d315-6422-4730ee74c095'
}